Skip to content

Comments

etherscan v2 multichain api#113

Merged
jalbrekt85 merged 5 commits intomainfrom
etherscan-v2
Jul 15, 2025
Merged

etherscan v2 multichain api#113
jalbrekt85 merged 5 commits intomainfrom
etherscan-v2

Conversation

@jalbrekt85
Copy link
Collaborator

#109 - created new Etherscan module and updated the existing get_first_block_after_utc_timestamp method to use etherscan api by default

Xeonus
Xeonus previously approved these changes Jul 15, 2025
Copy link
Contributor

@Xeonus Xeonus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, we need to add the Etherscan API key to the env variables though @jalbrekt85

)


def test_get_first_block_after_utc_timestamp_with_etherscan(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and clean test

self.session.mount("https://", adapter)

self.last_request_time = 0
self.rate_limit_delay = 0.2 # 200ms
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Free tier is 5 calls per second, so this makes sense to me

@jalbrekt85
Copy link
Collaborator Author

Overall LGTM, we need to add the Etherscan API key to the env variables though @jalbrekt85

added key in repo settings. test action will now read it in too: 7faf01b

@jalbrekt85 jalbrekt85 requested a review from Xeonus July 15, 2025 17:56
@jalbrekt85 jalbrekt85 merged commit 76d3f96 into main Jul 15, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants